package com.xunfang.service.impl;

import com.xunfang.bean.House;
import com.xunfang.bean.QueryHouse;
import com.xunfang.mapper.HouseMapper;
import com.xunfang.service.HouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yellow Doctor
 * @date 2025-09-17
 * @desc https://blog.csdn.net/hekai7217
 */
@Service
public class HouseServiceImpl implements HouseService {

    @Autowired
    private HouseMapper houseMapper;

    @Override
    public List<House> selectAllHouse(QueryHouse queryHouse) {
        return houseMapper.selectAllHouses(queryHouse);
    }

    @Override
    public void updateHouse(House house) {
        houseMapper.updateHouse(house);
    }
}
